/**
 * @developer：MR·Feng
 * 拦截器
 */

const { createProxyMiddleware } = require("http-proxy-middleware");
module.exports = function (app) {
  app.use(
    createProxyMiddleware("/campus", {
      target: "http://cmb.beyondsofthz.com",
      changeOrigin: true,
      pathRewrite: {
        "^/": "",
      },
    })
  );
};